function y = rosenbrock(x)
%Rosenbrock function
%n=2,m=2,x0=[-1.2,1]
%fmin1=f1([1;1])=0
%Author:Ji Lin
y1=10*(x(2)-x(1)^2);
y2=1-x(1);
y=y1^2+y2^2;